package com.fegin;

import com.dto.ItemDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @author: sksun2
 * @create: 2023-02-10
 */
@FeignClient(value = "item-service")
public interface ItemFegin {

    @GetMapping("item/{id}")
    ItemDTO getItemById(@PathVariable("id") Long id);

}
